<!-- 男女比例模块 -->
<template>
  <div class="sex">
    <div class="container">
      <!-- 标题 -->
      <div class="tit">男女比例</div>
      <!-- pk -->
      <div class="manAndWuman">
        <!-- 男士 -->
        <div class="man">
          <span>男士</span>
          <img src="../../images/man.png" alt="" srcset="" />
        </div>
        <!-- 女士 -->
        <div class="wuman">
          <span>女士</span>
          <img src="../../images/woman.png" alt="" srcset="" />
        </div>
      </div>
      <!-- 比例 -->
      <div class="bili"></div>
    </div>
  </div>
</template>

<script setup lang="ts"></script>

<style lang="scss" scoped>
.sex {
  width: 100%;
  height: 100%;
  padding-top: 10px;
  .container {
    width: 100%;
    height: 100%;
    background: url('../../images/dataScreen-main-cb.png') no-repeat;
    background-size: 100% 100%;
    /* 标题 */
    .tit {
      position: relative;
      top: 20px;
      width: 100%;
      height: 40px;
      color: #ffff;
      font-size: 22px;
      background: url('../../images/dataScreen-title.png') no-repeat left bottom;
    }
    /* pk */
    .manAndWuman {
      margin-top: 40px;
      display: flex;
      justify-content: center;
      width: 100%;
      height: 200px;
      .man {
        @include flexible(center);
        flex-direction: column;
        justify-content: space-between;
        width: 170px;
        height: 170px;
        margin-right: 20px;
        background: url('../../images/man-bg.png') no-repeat;
        background-size: 100% 100%;
        img {
          width: 100px;
          height: 100px;
        }
        span {
          font-size: 20px;
          color: #ffff;
        }
      }
      .wuman {
        @include flexible(center);
        flex-direction: column;
        justify-content: space-between;
        width: 170px;
        height: 170px;
        background: url('../../images/woman-bg.png') no-repeat;
        background-size: 100% 100%;
        img {
          width: 100px;
          height: 100px;
        }
        span {
          font-size: 20px;
          color: #ffff;
        }
      }
    }
    /* 比例 */
    .bili {
      position: relative;
      height: 20px;
      width: 100%;
      border-radius: 20px;
      &::after {
        content: '男士70%';
        position: absolute;
        top: 0;
        left: 0;
        width: 70%;
        height: 100%;
        background-color: red;
        border-radius: 20px;
        color: #ffff;
        text-align: center;
        font-size: 19px;
      }
      &::before {
        content: '女士30%';
        position: absolute;
        top: 0;
        right: 0;
        width: 40%;
        height: 100%;
        background-color: rgb(37, 204, 87);
        border-radius: 20px;
        color: #ffff;
        text-align: center;
        font-size: 19px;
      }
    }
  }
}
</style>
